package org.nanhill.moo.dao;

import java.util.List;

import org.nanhill.moo.domain.User;

public interface UserDao {

	User findByEmail(String username);

	User findByEmailPassword(String username, final String password);

	List<User> findLatestPart(int start, int size);

	/**
	 * @param uid
	 * @return
	 */
	User findById(Long uid);

	/**
	 * @param user
	 */
	void save(User user);

	/**
	 * @return
	 */
	int findCount();

}
